package com.ruoyi.data.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 库存记录对象 data_inventory_record
 *
 * @author ruoyi
 * @date 2022-10-03
 */
public class DataInventoryRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private Long deptId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String nickName;

    /**
     * 单据编号
     */
    @Excel(name = "单据编号")
    private String billNumber;

    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long goodId;

    /**
     * 商品代码
     */
    @Excel(name = "商品代码")
    private String goodCode;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodName;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Integer amount;

    /**
     * 增加数量
     */
    @Excel(name = "增加数量")
    private Integer inAmount;

    /**
     * 减少数量
     */
    @Excel(name = "减少数量")
    private Integer outAmount;

    /**
     * 库存类型
     */
    @Excel(name = "库存类型")
    private String stockType;

    /**
     * 库存描述
     */
    @Excel(name = "库存描述")
    private String stockDesc;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setBillNumber(String billNumber) {
        this.billNumber = billNumber;
    }

    public String getBillNumber() {
        return billNumber;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodCode(String goodCode) {
        this.goodCode = goodCode;
    }

    public String getGoodCode() {
        return goodCode;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setInAmount(Integer inAmount) {
        this.inAmount = inAmount;
    }

    public Integer getInAmount() {
        return inAmount;
    }

    public void setOutAmount(Integer outAmount) {
        this.outAmount = outAmount;
    }

    public Integer getOutAmount() {
        return outAmount;
    }

    public void setStockType(String stockType) {
        this.stockType = stockType;
    }

    public String getStockType() {
        return stockType;
    }

    public void setStockDesc(String stockDesc) {
        this.stockDesc = stockDesc;
    }

    public String getStockDesc() {
        return stockDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("nickName", getNickName())
                .append("billNumber", getBillNumber())
                .append("goodId", getGoodId())
                .append("goodCode", getGoodCode())
                .append("goodName", getGoodName())
                .append("amount", getAmount())
                .append("inAmount", getInAmount())
                .append("outAmount", getOutAmount())
                .append("stockType", getStockType())
                .append("stockDesc", getStockDesc())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
